import { http } from '@/utils/http'

export const getContactListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/contact/list',
    data,
  })
}

export const getContactAPI = (followRecordId: number | string) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/customer/contact/' + followRecordId,
  })
}

export const deleteContactAPI = (followRecordId: number | string) => {
  return http<any[]>({
    method: 'DELETE',
    url: '/mobile/customer/contact/' + followRecordId,
  })
}

export const postContactAPI = (data: any) => {
  return http<any[]>({
    method: 'POST',
    url: '/mobile/customer/contact',
    data,
  })
}

export const putContactAPI = (data: any) => {
  return http<any[]>({
    method: 'PUT',
    url: '/mobile/customer/contact',
    data,
  })
}
